package com.yy.wga.common.feign.config.config;

import com.yy.wga.common.web.intereceptor.RequestHolder;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.context.annotation.Bean;

/**
 * feign配置
 *
 * @author guochao
 * @desc 详细描述
 * @date 2023-08-31
 */
public class WgaFeignConfiguration {

    @Bean
    @ConditionalOnClass(RequestHolder.class)
    public WgaFeignRequestInterceptor wgaFeignRequestInterceptor() {
        return new WgaFeignRequestInterceptor();
    }

}
